package com.small.base.es.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * ElasticsearchEntity
 *
 * @author miajio
 */
@Data
public class ElasticsearchEntity implements Serializable {
    private static final long serialVersionUID = 1929975884621035352L;

    /**
     * es server alias
     */
    private String alias;
    /**
     * es host
     */
    private String host;

    /**
     * es port
     */
    private Integer port;

    public String getUrl() {
        return this.host + ":" + this.port;
    }

}
